import datetime


class Comment:
    def __init__(self,
                 commentID: int = None,
                 time: datetime = None,
                 content: str = None,
                 reply: int = None,  # point to commentID, not null
                 userID: str = None,
                 subjectID: int = None):
        self.commentID = commentID
        self.content = content
        self.time = time
        self.reply = reply
        self.userID = userID
        self.subjectID = subjectID

    def to_string(self):
        return "commentID: {}, content: {}, time: {}, reply: {}, userID: {}, subjectID: {}".format(
            self.commentID, self.content, self.time, self.reply, self.userID, self.subjectID)
